/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TestKelas;
import Penjualan.Penjualan;
/**
 *
 * @author Ignacio
 */
public class PenjualanTest {
    static Penjualan j1= new Penjualan();
    static Penjualan j2= new Penjualan();
    static Penjualan j3= new Penjualan();
    static Penjualan j4= new Penjualan();
    static Penjualan j5= new Penjualan();
    static Penjualan j6= new Penjualan();
    static Penjualan j7= new Penjualan();
    static Penjualan j8= new Penjualan();
    
    public static void main(String[] args) {
        System.out.println("Test notransaksijual =' '");
        try {
            j1.setNoPenjualan("");
            System.out.println("SUkses "+j1.getNoPenjualan());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test notransaksijual ='assda'");
        try {
            j2.setNoPenjualan("assda");
            System.out.println("SUkses "+j2.getNoPenjualan());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test notransaksijual ='1234'");
        try {
            j3.setNoPenjualan("1234");
            System.out.println("SUkses "+j3.getNoPenjualan());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test notransaksijual ='MAFYJ-'");
        try {
            j4.setNoPenjualan("MAFYJ-");
            System.out.println("SUkses "+j4.getNoPenjualan());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test notransaksijual ='MAFYJ-ieie '");
        try {
            j5.setNoPenjualan("MAFYJ-ieie");
            System.out.println("SUkses "+j5.getNoPenjualan());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test notransaksijual ='MAFYJ-0002'");
        try {
            j6.setNoPenjualan("MAFYJ-0002");
            System.out.println("SUkses "+j6.getNoPenjualan());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        
        System.out.println("Test noHp =' '");
        try {
            j1.setNoHp("");
            System.out.println("SUkses "+j1.getNoHp());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test noHp ='kksos'");
        try {
            j2.setNoHp("kksos");
            System.out.println("SUkses "+j2.getNoHp());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test noHp ='085644213584'");
        try {
            j3.setNoHp("085644213584");
            System.out.println("SUkses "+j3.getNoHp());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test provider ='-pilih provider-'");
        try {
            j1.setProvider("-pilih provider-");
            System.out.println("SUkses "+j1.getProvider());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test provider ='IM3'");
        try {
            j2.setProvider("IM3");
            System.out.println("SUkses "+j2.getProvider());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        
        System.out.println("Test nominal =' '");
        try {
            j1.setNominal("");
            System.out.println("SUkses "+j1.getNominal());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test nominal ='asd'");
        try {
            j2.setNominal("asd");
            System.out.println("SUkses "+j2.getNominal());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test nominal ='1234c3'");
        try {
            j3.setNominal("1234c3");
            System.out.println("SUkses "+j3.getNominal());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test nominal ='20000'");
        try {
            j4.setNominal("20000");
            System.out.println("SUkses "+j4.getNominal());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        
       System.out.println("Test setHarga =' '");
        try {
            j1.setHarga("");
            System.out.println("SUkses "+j1.getHarga());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test setHarga ='asd'");
        try {
            j2.setHarga("asd");
            System.out.println("SUkses "+j2.getHarga());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test setHarga ='1234c3'");
        try {
            j3.setHarga("1234c3");
            System.out.println("SUkses "+j3.getHarga());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test setHarga ='20000'");
        try {
            j4.setHarga("20000");
            System.out.println("SUkses "+j4.getHarga());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
    }
}
